<?php

namespace Ensao\AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Ensao\AppBundle\Entity\Evenement
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Ensao\AppBundle\Entity\EvenementRepository")
 */
class Evenement
{

    /**
    * @ORM\ManyToOne(targetEntity="Ensao\AppBundle\Entity\Dossier")
    * @ORM\JoinColumn(nullable=true)
    */
    private $dossier;
    
    /**
    * @ORM\ManyToOne(targetEntity="Ensao\AppBundle\Entity\TypeEvenement")
    * @ORM\JoinColumn(nullable=false)
    */
    private $typeEvenement;

    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string $libelle
     *
     * @ORM\Column(name="libelle", type="string", length=255)
     */
    private $libelle;

    /**
     * @var datetime $date
     *
     * @ORM\Column(name="date", type="datetime")
     */
    private $date;

    /**
     * @var text $description
     *
     * @ORM\Column(name="description", type="text")
     */
    private $description;

    /**
     * @var boolean $siElec
     *
     * @ORM\Column(name="numDossierSimple", type="integer")
     */
    private $numDossierSimple;

    /*
    * Constructeur
    */
    public function __construct()
    {
        $this->numDossierSimple=0;
    }
    
    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set libelle
     *
     * @param string $libelle
     */
    public function setLibelle($libelle)
    {
        $this->libelle = $libelle;
    }

    /**
     * Get libelle
     *
     * @return string 
     */
    public function getLibelle()
    {
        return $this->libelle;
    }

    /**
     * Set date
     *
     * @param datetime $date
     */
    public function setDate($date)
    {
        $this->date = $date;
    }

    /**
     * Get date
     *
     * @return datetime 
     */
    public function getDate()
    {
        return $this->date;
    }

    /**
     * Set description
     *
     * @param text $description
     */
    public function setDescription($description)
    {
        $this->description = $description;
    }

    /**
     * Get description
     *
     * @return text 
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Set typeEvenement
     *
     * @param Ensao\AppBundle\Entity\TypeEvenement $typeEvenement
     */
    public function setTypeEvenement(\Ensao\AppBundle\Entity\TypeEvenement $typeEvenement)
    {
        $this->typeEvenement = $typeEvenement;
    }

    /**
     * Get typeEvenement
     *
     * @return Ensao\AppBundle\Entity\TypeEvenement 
     */
    public function getTypeEvenement()
    {
        return $this->typeEvenement;
    }

    /**
     * Set dossier
     *
     * @param Ensao\AppBundle\Entity\Dossier $dossier
     */
    public function setDossier(\Ensao\AppBundle\Entity\Dossier $dossier)
    {
        $this->dossier = $dossier;
    }

    /**
     * Get dossier
     *
     * @return Ensao\AppBundle\Entity\Dossier 
     */
    public function getDossier()
    {
        return $this->dossier;
    }



    /**
     * Set numDossierSimple
     *
     * @param integer $numDossierSimple
     */
    public function setNumDossierSimple($numDossierSimple)
    {
        $this->numDossierSimple = $numDossierSimple;
    }

    /**
     * Get numDossierSimple
     *
     * @return integer 
     */
    public function getNumDossierSimple()
    {
        return $this->numDossierSimple;
    }
}